package com.kgd.news.controller.admin;

import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.ehcache.CacheKit;
import com.jfinal.upload.UploadFile;
import com.kgd.news.entity.HkTable;
import com.kgd.news.entity.MusicBg;
import com.kgd.news.entity.Order;
import com.kgd.news.utils.BaseController;
import com.kgd.news.utils.StringUtilsWx;

/**
 * @Email: huangsanm@foxmail.com
 * @Date: 2017/9/26
 * @Time: 下午11:12queryForm
 */
public class HktableController extends BaseController {

    @Override
    public void list() {
        String type = "order";
        String sql = "from hk_table where 1 = 1";
        sql += " order by id desc";
            Page<HkTable> data = HkTable.dao.paginate(getPageIndex(type), PAGE_SIZE, "select *", sql);
        setAttr("data", data);
        render("hktable_list.html");
    }

    @Override
    public void edit() {

    }

    @Override
    public void save() {

    }

    @Override
    public void del() {

    }


}
